package cn.actoncode.boot.module.ai.dal.mapper.user;

import cn.actoncode.boot.framework.mybatis.core.mapper.BaseMapperX;
import cn.actoncode.boot.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.actoncode.boot.module.ai.dal.dataobject.user.MemberUserDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 成员 User Mapper
 *
 * @author bin
 */
@Mapper
public interface MemberUserMapper extends BaseMapperX<MemberUserDO> {

    default MemberUserDO getUserByUsername(String username) {
        return selectOne(new LambdaQueryWrapperX<MemberUserDO>()
                .eq(MemberUserDO::getUsername, username));
    }

}
